package com.yzr.common.util;

import java.util.HashSet;

/**
 * @description
 * @author: yx-0173
 * @date: 2021-08-06 17:36
 **/
@SuppressWarnings({"all"})
public class ClassReflection {
    private static final Object shared = new Object();

    public static void main(String[] args) throws IllegalAccessException, InstantiationException, NoSuchMethodException {
        int i1 = Runtime.getRuntime().availableProcessors();
        HashSet<Object> set = new HashSet<>();

        for (int i = 1; i <= 13; i++) {
            set.add(new A(String.valueOf(i), i));
        }
    }
}

class A {
    private String name;

    private Integer age;

    public A(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return super.toString();
    }

    @Override
    public int hashCode() {
        return 100;
    }
}
